﻿public class CHECK  {


        private string date;
        private string desc;
        private decimal deposits;
        private decimal credits;
        private decimal balance;
        private int row;

        public int ROW { get { return row; } set { row = value; } }
        public string DATE { get { return date; } set { date = value;} }
        public string DESC { get { return desc; } set { desc = value; } }
        public decimal DEP { get { return deposits; } set { deposits = value; } }
        public decimal CRED{ get { return credits; } set{credits = value;} }
        public decimal BAL{get { return balance; } set { balance = value; }
        }

      
        
        public void addtoCheck(string _date, string _desc, decimal _deposits, decimal _credits,decimal _bal)
        {
            
            DATE = _date;
            DESC = _desc;
            DEP = _deposits;
            CRED = _credits;
            BAL = _bal;


        }
    /*
        public void GETBALANCE(string _deposits, string _credits)
        {
           
            int ideposits = Convert.ToInt32(_deposits);
            int icredits = Convert.ToInt32(_credits);
            
            int ibalance = (ideposits - icredits);
            int tbalance = ((Convert.ToInt32(balance) + ibalance));
            balance = tbalance.ToString();

            
        } 
 */
        //private void SetWork(decimal c_name, decimal c_num,
        //    decimal c_hrs)
        //{
        //    RENT = c_name;
        //    GAS = c_num;
        //    CC = c_hrs;
        //}

      
      

     /* class WorkClass : IComparable{
        String name;
        String num;
        String hrs;
            private void SetWork(string c_name, string c_num,
            string c_hrs)
        {
            workName = c_name;
            worknum = c_num;
            workhrs = c_hrs;
        }
          public int CompareTo(object working){
              WorkClass u = 
        */


    }